<?php
/**
 * @author 	 	 supfire@sohu.com
 * @copyright		 ourmy.com
 * @version		 1.0
 * @name 		 user.php
 * @todo 		 用户action
 * @final 		 2009-05-21
 */
define('IN_YCTOOL', true);//定义该文件合法性
require_once('config.php');
require_once(DIR_COMM . 'common.php');

$userid = $user->userinfo['userid'];
$infoid = isset($_GET['id']) ? $_GET['id'] : $sec;
!$infoid && print '<script language="javascript">document.location="./";</script>';
db::updateRs(DB_TABLEPRE . 'web_info', 'views = views+1', 'infoid='.$infoid);
$rslist = db::getRow(DB_TABLEPRE . 'web_info', '*', 'active <> -1 AND infoid ='.$infoid);

if($rslist['type'] == 2 || $rslist['active'] == 99)
{
	//$rslist['content'] = str_replace('http://','',$rslist['content']);
	echo '<script language="javascript">document.location="'.$rslist['content'].'";</script>';
	exit;
}

require_once DIR_COMM.'template.func.php';
require_once tpl('post.html', $tpldir);
?>
